package com.it.archives.rpc.service.impl;

import com.it.archives.dao.mapper.UserMapper;
import com.it.archives.model.User;
import com.it.archives.rpc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> queryList(User user) {
        return userMapper.queryList(user);
    }

    @Override
    public List<User> queryUserListByParam(User user) {
        return userMapper.queryUserListByParam(user);
    }
}
